<?php
	echo $this->Form->create(false, array('url' => array('controller' => 'home', 'action' => 'index' ), 'id' => 'myform', 'class' => 'form-horizontal'));
?>	
<div class="control-group">
	<div class="controls">
		<label class="control-label">Display Name</label>
		<div class="controls">
			<label style = "color: red; font-size: 16px"><?php echo "Lê Thị Vân"?></label>
			
		</div>
		<br>
		<label class="control-label">Current Password</label>
		<div class="controls">
			<?php 
			echo $this->Form->input('password', array('type' => 'password', 'label' => false));
			?>
			
		</div>
		<br>
		<label class="control-label" >New Password</label>
		 <div class="controls">
			<?php 
			echo $this->Form->input('new_password', array('type' => 'password', 'label' => false));
			?>
			
		</div>
		<br>
		<label class="control-label">Confirm New Password</label>
		 <div class="controls">
			<?php 
			echo $this->Form->input('confirm_new_password', array('type' => 'password', 'label' => false));
			?>
		</div>
		<br>
		<div class="controls">
			<?php 
			echo $this->Form->submit('Save', array('class' => 'btn btn-primary'));
			?>
			
		</div>
	 
	</div>
</div>
<?php echo $this->Form->end(); ?>	
<script>
$( "#myform" ).validate({
  rules: {
	"data[password]": {
	 	required: true
	 },
    "data[new_password]": {
    	required: true,
    	rangelength: [6,10]
   },
    "data[confirm_new_password]": {
    	required: true
    },
   
  }
});
</script>